//
//  DataSourceProtocol.h
//  SimulacraDB
//
//  Created by Andre Cohen on 8/15/08.
//  Copyright 2008 __MyCompanyName__. All rights reserved.
//

#import "Record.h"
#import "PageIterator.h"

@protocol DataSourceProtocol

- (id)initWithDataSource:(NSString *)name 
		 recordPrototype:(Record *)prototype;
- (void)close;

- (void)addIndexWithName:(NSString *)name block:(int)block;

- (void)insertRecord:(Record *)record;
- (void)removeRecord:(Record *)record;

- (PageIterator *)iterator;

- (NSArray *)getRecord:(Record *)record usingIndex:(NSString *)index;

@end
